dir_name=$1
file_name=$2

if [ -z "$dir_name" ]; then
echo Please input dir name:
read dir_name
fi

if [ -z "$file_name" ]; then
echo Please input c file name:
read file_name
fi

mkdir $dir_name
cp skeleton/module.c $dir_name/$file_name.c
ln -s ../demo.code-workspace $dir_name/module.code-workspace
ln -s ../subMakefile $dir_name/Makefile
echo "# ${dir_name#*_}" > $dir_name/readme.md

